import C_App from "../../core/C_App";
import { C_NotificationConst } from "../../core/C_NotificationConst";
import BaseView from "./C_BaseView";

const { ccclass, property } = cc._decorator;
/** 退出确认 */
@ccclass
export default class C_ExitView extends BaseView {

    protected onLoad(): void {

    }

    onTouchExit() {
        this.node.destroy();
        C_App.NotificationCenter.dispatch(C_NotificationConst.BACK_CUSTOMS)
    }

    onTouchClose() {
        this.node.destroy();
    }

}
